package com.ktgj.customer.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 退单对象 mall_order_refund
 * 
 * @author ruoyi
 * @date 2022-11-15
 */
public class MallOrderRefund implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 商城退单表主键 */
    private Long refundId;

    /** 商城订单表关联ID */
    @Excel(name = "商城订单表关联ID")
    private Long orderId;

    /** 商城商品表关联ID */
    @Excel(name = "商城商品表关联ID")
    private Long productId;

    /** 商品表名称 */
    @Excel(name = "商品表名称")
    private String productName;

    /** 会员表关联ID */
    @Excel(name = "会员表关联ID")
    private Long customerId;

    /** 会员名称 */
    @Excel(name = "会员名称")
    private String customerName;

    /** 会员手机号 */
    @Excel(name = "会员手机号")
    private String customerPhone;

    /** 退单状态，0 申请退单 1 退单成功 2 退单失败 */
    @Excel(name = "退单状态，0 申请退单 1 退单成功 2 退单失败")
    private Long status;

    /** 退款确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款确认时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal refundAmount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public void setRefundId(Long refundId) 
    {
        this.refundId = refundId;
    }

    public Long getRefundId() 
    {
        return refundId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setCustomerPhone(String customerPhone) 
    {
        this.customerPhone = customerPhone;
    }

    public String getCustomerPhone() 
    {
        return customerPhone;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setRefundAmount(BigDecimal refundAmount)
    {
        this.refundAmount = refundAmount;
    }

    public BigDecimal getRefundAmount()
    {
        return refundAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("refundId", getRefundId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("customerId", getCustomerId())
            .append("customerName", getCustomerName())
            .append("customerPhone", getCustomerPhone())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("applyTime", getApplyTime())
            .append("refundAmount", getRefundAmount())
            .toString();
    }
}
